import { Exception } from "../../Framework/Util/Exception";
import { Event } from "../../flash/events/index";
//class RMIEvent

export class RMIEvent extends Event {
  constructor(
    arg1: string,
    arg2: boolean = false,
    arg3: boolean = false,
    error: Exception | null = null,
    interfaceName: string | null = null
  ) {
    super(arg1, arg2, arg3);
    this._error = error!;
    this._interfaceName = interfaceName!;
  }

  public get error(): Exception {
    return this._error;
  }

  public get interfaceName(): string {
    return this._interfaceName;
  }

  public static /* const */ RMI_ERROR: string = "rmi_error";

  public static /* const */ CALL_INTERFACE_TYPE: string = "call_interface_type";

  private _error: Exception;

  private _interfaceName: string;
}
